<template>
  <div class="cell-detail-wrapper">
    <span>
      <!--<router-link  :to="{path:col.link,query:{ctl:col.ctl,id:col.rs}}">{{col.rs}}</router-link>-->
      <a v-if="true"  @click="detailCom(col.ctl,col.rs)">{{col.rs}}</a>
      <span v-else>{{col.rs}}</span>
    </span>
  </div>
</template>
<script>
  import tool from 'src/util/tool';
  import util from '_util/index';
  import logic from '_logic';

  export default{
    data(){
      return {
        path: '',
        page_type: 'list'
      }
    },
    methods: {
      detailCom(ctl,id){
        logic.detail.detailCom(this, ctl, id);
      }
    },
    props: ['col'],
    created(){
//      this.$set(this.col, 'link', 'detail')
    }
  };
</script>
<style rel="stylesheet/less" lang="less">

  @dir: "header/";
  .cell-detail-wrapper{
    a{
      cursor: pointer;
    }
  }
</style>
